package com.singbon.server.config;
import com.singbon.server.util.DesUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
/**
 * 2022-12-10 10:45 周六
 */
@Slf4j
@Component
public class RunBeforeStart implements ApplicationRunner {
  @Override
  public void run(ApplicationArguments args) {
    try {
      String hw = "test";
      DesUtil.desInit(hw);
      log.info("DesUtil init over");
    }
    catch (Exception e) {
      log.error(e.getMessage(), e);
    }
  }
}
